package lly;

public interface Promise<T> {
    <R> Promise<R> then(Function<T, R> fulfilled, Function<Exception, R> rejected);
    <R> Promise<R> onFulfilled(Function<T, R> fulfilled);
    <R> Promise<R> onRejected(Function<Exception, R> rejected);
}
